<template>
  <div id="app">
    <router-view />
    <iframe name="targetName" style="display: none"></iframe>
  </div>
</template>
<script>
export default {
  name: 'App',
  props: {},
  data() {
    return {}
  },
  components: {},
  computed: {},
  watch: {},
  mounted() {
    console.log('app...mounted...')
    // window.onbeforeunload = () => {
    //   localStorage.setItem('close 1', new Date().toTimeString())
    // }
  },
  methods: {},
  beforeDestroy() {},
}
</script>
<style lang="scss">
#app {
  height: 100%;
  width: 100%;
  position: relative;
  font-family: 'Microsoft YaHei';
  font-size: 14px;
  color: #333;
}
.el-select-wrap {
  width: 120px;
  .el-select-group__wrap {
    .el-select-group__title {
      font-size: 18px;
      font-weight: bold;
      color: #333;
    }
    .el-select-group {
      display: flex;
      flex-wrap: wrap;
      .el-select-dropdown__item {
        min-width: 25%;
        font-size: 14px;
        margin-top: 5px;
      }
    }
  }
}
img {
  position: relative;
}
img::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '加载失败';
  display: block;
  background: #f5f7fa;
  color: #c0c4cc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.dot-loading {
  &::after {
    content: '...';
    display: inline-block;
    margin-left: 2px;
    overflow: hidden;
    animation: dot 4s infinite step-start;
    vertical-align: bottom;
    width: 12px;
  }
}

@keyframes dot {
  0% {
    width: 0;
    margin-right: 12px;
  }
  25% {
    width: 0px;
    margin-right: 12px;
  }
  50% {
    width: 4px;
    margin-right: 8px;
  }
  75% {
    width: 8px;
    margin-right: 4px;
  }
  100% {
    width: 12px;
    margin-right: 0px;
  }
}
</style>
